import cv2

for i in range(1000):
    # print(i)
    img = cv2.imread("/media/erge/data/code/php/water/1.jpg")
    font = cv2.FONT_HERSHEY_SIMPLEX
    cv2.putText(img, 'xyz', (10, 50), font, 2, (255, 0, 0), 2)
    cv2.imwrite(str(i) + ".jpg", img)
